home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / osi / isode / vmsisode / vmsisode80_tar.Z / vmsisode80_tar / sockit / gccinclude / x11 / intrinsicp.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-04-24  |  6.5 KB  |  203 lines

  1. /*  DEC/CMS REPLACEMENT HISTORY, Element INTRINSICP.H */
  2. /*   5    31-MAR-1988 12:03:41 TREGGIARI "MARCH 30 INTRINSICS" */
  3. /*   4    24-MAR-1988 16:04:25 TREGGIARI "Replace with completely new version" */
  4. /*  *3    27-FEB-1988 18:23:04 GEORGE "Add copyright" */
  5. /*  *2     5-JAN-1988 15:44:29 TREGGIARI "Replace with completely new version" */
  6. /*  *1    18-DEC-1987 14:10:56 TREGGIARI "Initial Entry" */
  7. /*  DEC/CMS REPLACEMENT HISTORY, Element INTRINSICP.H */
  8. /*
  9. * $Header: IntrinsicP.h,v 6.12 87/12/21 17:19:58 guarino Exp $
  10. */
  11.  
  12. /*
  13. *****************************************************************************
  14. **                                                                          *
  15. **                         COPYRIGHT (c) 1988 BY                            *
  16. **             DIGITAL EQUIPMENT CORPORATION, MAYNARD, MASS.                *
  17. **               ALL RIGHTS RESERVED                              *
  18. **                                                                          *
  19. **  THIS SOFTWARE IS FURNISHED UNDER A LICENSE AND MAY BE USED AND  COPIED  *
  20. **  ONLY  IN  ACCORDANCE  WITH  THE  TERMS  OF  SUCH  LICENSE AND WITH THE  *
  21. **  INCLUSION OF THE ABOVE COPYRIGHT NOTICE.  THIS SOFTWARE OR  ANY  OTHER  *
  22. **  COPIES  THEREOF MAY NOT BE PROVIDED OR OTHERWISE MADE AVAILABLE TO ANY  *
  23. **  OTHER PERSON.  NO TITLE TO AND OWNERSHIP OF  THE  SOFTWARE  IS  HEREBY  *
  24. **  TRANSFERRED.                                                            *
  25. **                                                                          *
  26. **  THE INFORMATION IN THIS SOFTWARE IS SUBJECT TO CHANGE  WITHOUT  NOTICE  *
  27. **  AND  SHOULD  NOT  BE  CONSTRUED  AS  A COMMITMENT BY DIGITAL EQUIPMENT  *
  28. **  CORPORATION.                                                            *
  29. **                                                                          *
  30. **  DIGITAL ASSUMES NO RESPONSIBILITY FOR THE USE OR  RELIABILITY  OF  ITS  *
  31. **  SOFTWARE ON EQUIPMENT WHICH IS NOT SUPPLIED BY DIGITAL.                 *
  32. **                                                                          *
  33. *****************************************************************************
  34. **++
  35. **  FACILITY:
  36. **
  37. **    < to be supplied >
  38. **
  39. **  ABSTRACT:
  40. **
  41. **    < to be supplied >
  42. **
  43. **  ENVIRONMENT:
  44. **
  45. **    < to be supplied >
  46. **
  47. **  MODIFICATION HISTORY:
  48. **
  49. **    < to be supplied >
  50. **
  51. **--
  52. **/
  53.  
  54. #ifndef _XtintrinsicP_h
  55. #define _XtintrinsicP_h
  56.  
  57. #ifdef VMS
  58. #include <decw$include/Intrinsic.h>
  59. #include <decw$include/Xutil.h>
  60. #else
  61. #include "Intrinsic.h"
  62. #include "Xutil.h"
  63. #endif
  64.  
  65. typedef unsigned long XtVersionType;
  66.  
  67. #define XT_VERSION 6
  68. #define XT_REVISION 2
  69. #define XtVersion (XT_VERSION * 1000 + XT_REVISION)
  70.  
  71. #define XtOffset(type,field)    ((unsigned int)&(((type)NULL)->field))
  72.  
  73. typedef void (*XtProc)();
  74.     /* takes no arguments */
  75.  
  76. typedef void (*XtWidgetProc)();
  77.     /* Widget widget */
  78.  
  79. typedef void (*XtArgsProc)();
  80.     /* Widget   widget */
  81.     /* ArgList  args */
  82.     /* Cardinal *num_args */
  83.  
  84. typedef void (*XtInitProc)();
  85.     /* Widget request_widget; */
  86.     /* Widget new_widget; */
  87.  
  88. typedef Boolean (*XtSetValuesFunc)();  /* returns TRUE if redisplay needed */
  89.     /* Widget widget;       */
  90.     /* Widget request;      */
  91.     /* Widget new;        */
  92.  
  93. typedef Boolean (*XtArgsFunc)();
  94.     /* Widget   widget      */
  95.     /* ArgList  args        */
  96.     /* Cardinal *num_args   */
  97.  
  98. typedef void (*XtAlmostProc)();
  99.     /* Widget        widget;     */
  100.     /* Widget        new_widget; */
  101.     /* XtWidgetGeometry *request;   */
  102.     /* XtWidgetGeometry *reply;     */
  103.  
  104. typedef void (*XtExposeProc)();
  105.     /* Widget    widget; */
  106.     /* XEvent    *event; */
  107.  
  108. typedef void (*XtRealizeProc) ();
  109.     /* Widget    widget;                */
  110.     /* XtValueMask mask;            */
  111.     /* XSetWindowAttributes *attributes;    */
  112.  
  113. typedef void (*XtCreatePopupChildProc)();
  114.  
  115. typedef XtGeometryResult (*XtGeometryHandler)();
  116.     /* Widget        widget      */
  117.     /* XtWidgetGeometry *request    */
  118.     /* XtWidgetGeometry *reply      */
  119.  
  120. #ifdef VMS
  121. #include <decw$include/CoreP.h>
  122. #include <decw$include/CompositeP.h>
  123. #include <decw$include/ConstraintP.h>
  124. #else
  125. #include "CoreP.h"
  126. #include "CompositeP.h"
  127. #include "ConstraintP.h"
  128. #endif
  129.  
  130. #define XtDisplay(widget)    ((widget)->core.screen->display)
  131. #define XtScreen(widget)    ((widget)->core.screen)
  132. #define XtWindow(widget)    ((widget)->core.window)
  133. #define XtClass(widget)        ((widget)->core.widget_class)
  134. #define XtSuperclass(widget)    (XtClass(widget)->core_class.superclass)
  135. #define XtIsManaged(widget)     ((widget)->core.managed)
  136. #define XtMapWidget(widget)    XMapWindow(XtDisplay(widget), XtWindow(widget))
  137. #define XtUnmapWidget(widget)    \
  138.         XUnmapWindow(XtDisplay(widget), XtWindow(widget))
  139.  
  140. extern void XtCreateWindow ();
  141.     /* Widget widget; */
  142.     /* unsigned int windowClass; */
  143.     /* Visual *visual; */
  144.     /* Mask valueMask; */
  145.     /* XSetWindowAttributes *attributes; */
  146.  
  147. extern void XtResizeWidget(); /* widget, width, height, borderWidth */
  148.     /* Widget  widget */
  149.     /* Dimension width, height, borderWidth; */
  150.  
  151. extern void XtMoveWidget(); /* widget, x, y */
  152.     /* Widget  widget */
  153.     /* Position x, y  */
  154.  
  155. /****************************************************************
  156.  *
  157.  * Graphic Context Management
  158.  *****************************************************************/
  159.  
  160. extern GC XtGetGC(); /* widget, valueMask, values */
  161.     /* Widget    widget */
  162.     /* XtGCMask valueMask; */
  163.     /* XGCValues *values; */
  164.  
  165. extern void XtDestroyGC (); /* widget, gc */
  166.     /* Widget widget; */
  167.     /* GC gc; */
  168. /* we pass in the widget because XFreeGC needs a display, and there isn't */
  169. /* one stored in the GC record. */
  170.  
  171. typedef struct _XtResource {
  172.     String     resource_name;    /* Resource name                */
  173.     String     resource_class;    /* Resource class                */
  174.     String     resource_type;    /* Representation type desired            */
  175.     Cardinal    resource_size;    /* Size in bytes of representation        */
  176.     Cardinal    resource_offset;/* Offset from base to put resource value   */
  177.     String     default_type;    /* representation type of specified default */
  178.     caddr_t     default_addr;   /* Address of default resource            */
  179. } XtResource;
  180.  
  181. extern void XtReadBinaryDatabase ();
  182.     /* FILE    *f;            */
  183.     /* ResourceDatabase *db;        */
  184.  
  185. extern void XtWriteBinaryDatabase ();
  186.     /* FILE    *f;            */
  187.     /* ResourceDatabase db;        */
  188.  
  189. /*************************************************************
  190.  *
  191.  * Error Handling
  192.  *
  193.  ************************************************************/
  194.  
  195. extern void XtError();  /* message */
  196.     /* String message */
  197.  
  198. extern void XtWarning();  /* message */
  199.     /* String message */
  200.  
  201. #endif _XtIntrinsicP_h
  202. /* DON'T ADD STUFF AFTER THIS #endif */
  203.